/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cip.esymons.general.be;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author FreddyHIQ
 */
@Embeddable
public class CargoEmpleadoPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "fk_car_codigo")
    private int fkCarCodigo;
    @Basic(optional = false)
    @Column(name = "fk_per_codigoemp")
    private long fkPerCodigoemp;

    public CargoEmpleadoPK() {
    }

    public CargoEmpleadoPK(int fkCarCodigo, long fkPerCodigoemp) {
        this.fkCarCodigo = fkCarCodigo;
        this.fkPerCodigoemp = fkPerCodigoemp;
    }

    public int getFkCarCodigo() {
        return fkCarCodigo;
    }

    public void setFkCarCodigo(int fkCarCodigo) {
        this.fkCarCodigo = fkCarCodigo;
    }

    public long getFkPerCodigoemp() {
        return fkPerCodigoemp;
    }

    public void setFkPerCodigoemp(long fkPerCodigoemp) {
        this.fkPerCodigoemp = fkPerCodigoemp;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) fkCarCodigo;
        hash += (int) fkPerCodigoemp;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CargoEmpleadoPK)) {
            return false;
        }
        CargoEmpleadoPK other = (CargoEmpleadoPK) object;
        if (this.fkCarCodigo != other.fkCarCodigo) {
            return false;
        }
        if (this.fkPerCodigoemp != other.fkPerCodigoemp) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.general.be.CargoEmpleadoPK[fkCarCodigo=" + fkCarCodigo + ", fkPerCodigoemp=" + fkPerCodigoemp + "]";
    }

}
